package com.brzjomo.secretiveworld.init;

import com.brzjomo.secretiveworld.SecretiveWorld;
import com.brzjomo.secretiveworld.tileentity.CorpseOfAnUnknownTravelerTileEntity;
import com.brzjomo.secretiveworld.tileentity.CrateTileEntity;
import com.brzjomo.secretiveworld.tileentity.GreedyChestTileEntity;

import net.minecraft.tileentity.TileEntityType;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class ModTileEntityTypes {

	@SuppressWarnings("deprecation")
	public static final DeferredRegister<TileEntityType<?>> TILE_ENTITY_TYPES = new DeferredRegister<>(
			ForgeRegistries.TILE_ENTITIES, SecretiveWorld.MODID);

	public static final RegistryObject<TileEntityType<GreedyChestTileEntity>> GREEDY_CHEST = TILE_ENTITY_TYPES.register(
			"greedy_chest",
			() -> TileEntityType.Builder.create(GreedyChestTileEntity::new, ModBlocks.GREEDY_CHEST.get()).build(null));

	public static final RegistryObject<TileEntityType<CrateTileEntity>> CRATE = TILE_ENTITY_TYPES.register("crate",
			() -> TileEntityType.Builder.create(CrateTileEntity::new, ModBlocks.CRATE.get()).build(null));

	public static final RegistryObject<TileEntityType<CorpseOfAnUnknownTravelerTileEntity>> CORPSE_OF_AN_UNKNOWN_TRAVELER = TILE_ENTITY_TYPES
			.register("corpse_of_an_unknown_traveler", () -> TileEntityType.Builder
					.create(CorpseOfAnUnknownTravelerTileEntity::new, ModBlocks.CORPSE_OF_AN_UNKNOWN_TRAVELER.get())
					.build(null));
}
